html {
  --blue: #153b8e;
  --pink: rgb(229, 212, 204);
  --dark: #333;
  --gray: #666;
  --white: #fff;
  --border: #f0f0f0;
  --public-padding: 5rem;
}

a {
  color: var(--blue);
  font-weight: bold;
  text-decoration: none;
}

body {
  margin: 0;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
}

section h2 {
  display: inline-block;
}

section h2::after {
  display: block;
  content: "";
  border-bottom: var(--blue) 4px solid;
  margin-top: 2px;
  margin-right: 0.5rem;
}

section [class$="-btn"] {
  font-weight: bold;
}

section.home {
  display: flex;
  flex-direction: column;
  padding: 0 var(--public-padding);
  height: 100vh;
  min-height: 500px;
  position: relative;
}

section.home nav {
  display: flex;
  height: 3rem;
  padding: 2rem 0;
  align-items: center;
}

section.home nav .slogan {
  font-size: 3rem;
}

section.home nav .link {
  flex: 1;
  text-align: right;
}

section.home nav .mobile-title {
  font-size: 1.5rem;
  display: none;
}

section.home nav a {
  color: var(--dark);
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem;
}

section.home .introduce {
  line-height: 1.2;
  font-weight: bold;
  margin: 6rem 0 4rem;
}

section.home .introduce p {
  margin: 1rem 0;
}

section.home .introduce .welcome {
  font-size: 1.4rem;
}

section.home .introduce .name {
  font-size: 1.8rem;
}

section.home .introduce .job {
  font-size: 2rem;
}

section.home .introduce .description {
  color: var(--gray);
  max-width: 40rem;
  font-style: italic;
}

section.home .director {
  margin: 0 -0.3rem;
}

section.home [class$="-btn"] {
  font-size: 0.95rem;
  line-height: 0.8rem;
  padding: 0.6rem 1.6rem;
  display: inline-block;
  margin: 0.5rem 0.3rem;
  box-sizing: border-box;
}

section.home .primary-btn {
  color: var(--white);
  background-color: var(--blue);
  text-decoration: none;
  border: var(--blue) 2px solid;
  border-radius: 4rem;
}

section.home .secondary-btn {
  text-decoration: none;
  border: var(--blue) 2px solid;
  color: var(--blue);
  border-radius: 4rem;
}

.more {
  display: flex;
  flex: 1;
  text-align: center;
}

.more a {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  margin: auto;
  width: 3rem;
  height: 3rem;
  border: var(--blue) 2px solid;
  color: var(--blue) 2px solid;
  border-radius: 50%;
}

.more a span {
  flex: 1;
  font-size: 2rem;
}

.nav-backshadow {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  z-index: -1;
  border-top: 650px solid var(--pink);
  border-left: 650px solid transparent;
}

section.me {
  padding: 0 var(--public-padding);
  display: flex;
}

section.me .aboutme {
  flex: 2;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--public-padding);
}

section.me .why-me p {
  color: var(--gray);
  margin-top: 0;
  margin-right: 1rem;
}

section.me .aboutskill {
  flex: 1;
}

section.me .aboutskill .skills {
  margin: 0;
  padding: 0;
  list-style: none;
}

section.me .aboutskill .skills li {
  white-space: nowrap;
}

section.me .aboutskill .skills span {
  display: inline-block;
  border: var(--gray) 1px solid;
  padding: 0.2rem 0.4rem;
  margin: 0.2rem 0 0.2rem 0.1rem;
  background-color: var(--border);
  box-shadow: 1px 2px 2px 0px var(--dark);
}

section.me .aboutskill .skills span.percent {
  border: none;
  margin-left: -10px;
  transform: translateX(-100%);
  font-style: italic;
  background: none;
  box-shadow: none;
  font-weight: bold;
}

section.me .aboutskill .skills span.percent::first-letter {
  opacity: 0;
}

section.services {
  padding: 0 var(--public-padding);
  background-color: var(--pink);
  padding-bottom: var(--public-padding);
}

section.services ol {
  display: flex;
  margin: 0 -0.75rem;
  padding: 0;
}

section.services ol li {
  flex: 1;
  list-style: none;
  margin: 0.75rem;
  border: var(--white) 8px solid;
  padding: 1rem 2rem;
  border-radius: 0 0 8rem 0;
}

section.services ol li:hover {
  border-color: var(--blue);
  background-color: var(--white);
}

section.portfolio {
  padding: 0 var(--public-padding);
  padding-bottom: var(--public-padding);
}

section.portfolio .figures {
  display: flex;
  margin: 0 -0.75rem;
  padding: 0;
}

section.portfolio figure {
  flex: 1;
  margin: 0.75rem;
  text-align: center;
}

section.portfolio figure img {
  width: 100%;
}

section.contact {
  background-color: var(--pink);
  padding: 0 var(--public-padding);
}

section.contact a {
  display: inline-block;
  padding: 0.5rem 2rem;
  border-radius: 4rem;
  text-decoration: none;
  background-color: var(--white);
  margin: 0.5rem 0 3rem;
}

section.contact a:hover {
  color: var(--white);
  background-color: var(--blue);
}

section.contact p {
  margin-top: 0;
}

section.footer {
  display: flex;
  align-items: center;
  background-color: var(--pink);
  border-top: var(--white) 1px solid;
  padding: 1rem var(--public-padding);
}

section.footer nav {
  flex: 1;
  text-align: right;
}

.social-link a {
  text-decoration: none;
  font-size: 2.4rem;
  line-height: 1;
  text-align: center;
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--dark);
}

section.footer .social-link a {
  line-height: inherit;
}

@media screen and (max-width: 768px) {
  html {
    --public-padding: 2rem;
  }

  section.home nav {
    background-color: var(--pink);
    margin: 0 calc(-1 * var(--public-padding));
    padding: 0.6rem var(--public-padding);
  }

  section.home nav .mobile-title {
    display: none;
  }

  .nav-backshadow {
    border-top-width: 550px;
    border-left-width: 550px;
  }

  section.me {
    flex-direction: column-reverse;
  }

  section.services ol {
    flex-direction: column;
  }

  section.portfolio .figures {
    flex-direction: column;
  }

  section.footer {
    flex-direction: column;
  }

  section.footer footer,
  section.footer nav {
    text-align: center;
  }
}

@media screen and (max-width: 600px) {
  section.home nav .link {
    display: none;
  }

  section.home nav .mobile-title {
    display: block;
    flex: 1;
    text-align: right;
  }

  .nav-backshadow {
    display: none;
  }
}

@media screen and (max-height: 568px) {
  section.home .introduce {
    margin: 2rem 0 1rem;
  }
}

@media (min-height: 568px) and (max-height: 640px) {
  section.home .introduce {
    margin: 4rem 0 1rem;
  }
}

@media (min-height: 640px) and (max-height: 667px) {
  section.home .introduce {
    margin: 5rem 0 1rem;
  }
}
